﻿<UserControl x:Class="LiSAClient.WpfClient.View.Projects.Edit.EditMetainformation"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="300" Width="800" Height="500">
    <Grid>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="155"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="20"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <!--Title-->
        <Label Grid.Column="0" Grid.Row="0" Content="Title" Style="{StaticResource InformationCaption}"/>

        <TextBox Grid.Column="1" Grid.Row="0" Text="{Binding Project.Title, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" TabIndex="0"/>

        <!--Description-->
        <Label Grid.Column="0" Grid.Row="1" Content="Description" Style="{StaticResource InformationCaption}"/>

        <TextBox Grid.Column="1" Grid.Row="1" Text="{Binding Project.Description, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" VerticalContentAlignment="Top" TabIndex="1" TextWrapping="Wrap" AcceptsReturn="True" Height="400"/>

        <!--Title-->
        <Label Grid.Column="0" Grid.Row="2" Content="Majority Number" Style="{StaticResource InformationCaption}"/>

        <TextBox Grid.Column="1" Grid.Row="2" Text="{Binding Project.MajorityNumber, UpdateSourceTrigger=PropertyChanged}" Style="{StaticResource EditableTextBox}" Name="MajorityTextbox" PreviewTextInput="NumberValidationTextBox" TabIndex="2"/>

    </Grid>
</UserControl>